import Vue from 'vue'
import 'normalize.css/normalize.css'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

import '@/styles/index.scss' // global css

import App from './App'
import store from './store'
import router from './router'

import '@/icons' // icon
// 导入permission会立即执行
import '@/permission'

// 插件注册
import componentPlugin from '@/components'
// 一旦调用了Vue.use()相当于自动执行了插件对象内部的install
Vue.use(componentPlugin)

Vue.use(ElementUI)

Vue.config.productionTip = false
// 访问VUE_APP_PORT
console.log(process.env.VUE_APP_PORT)
// vue实例化
new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
